#include "PrecompiledHeader_FileSysMgr.h"
#include "TTFParser.h"

/*--------------------------------------------------------------------------*/

TTFParser::TTFParser(void)
{
	FileSys::RegisterParser(this, ".ttf");
}

/*--------------------------------------------------------------------------*/

TTFParser::~TTFParser(void)
{
	FileSys::UnregisterParser(this);
}

/*--------------------------------------------------------------------------*/

void* TTFParser::Load( FileDesc* desc )
{
	TTFFile* file = new TTFFile(desc->GetFullname());
	return file;
// 
// 	bool result = file->m_xmlDocument.load_file(desc->GetPath().c_str());
// 
// 	if (!result)
// 	{
// 		AssertLogC(!result, "Error parsing %s!", desc->GetPath().c_str());
// 
// 		delete file;
// 		return NULL;
// 	}
// 	else
// 	{
// 		return file;
// 	}
}

/*--------------------------------------------------------------------------*/

void TTFParser::Unload( void* file )
{

}

/*--------------------------------------------------------------------------*/
